<?php

/**
 * JingYao-backend
 *
 * @link     https://gitee.com/wang-zhihui-release/jingyao-backend
 * @apiDocument https://gitee.com/wang-zhihui-release/jingyao-backend/wikis/
 */

namespace Database\Seeders;

use App\Enums\CheckStatusEnum;
use App\Models\SearchNotice;
use App\Models\User;
use Illuminate\Database\Seeder;

class SearchNoticeSeeder extends Seeder
{
    /**
     * Run the database seeds.
     */
    public function run()
    {
        for ($i = 0; $i < 10; ++$i) {
            $user = User::factory()->create();
            SearchNotice::factory()->create([
                'user_id' => $user->id,
                'check_status' => CheckStatusEnum::CHECK_ING,
            ]);
        }
    }
}
